<?php
$tipo='produccion';
if (!defined("DS")) {	define("DS", DIRECTORY_SEPARATOR);}
if (!defined('ROOT')) {	define('ROOT', "/var/www/sistemas/$tipo/subsidio");}
if (!defined("APP_DIR")) { define("APP_DIR", "fuente");}
if (!defined("WEBROOT_DIR")) {define("WEBROOT_DIR", "www");}
if (!defined("WWW_ROOT")) { define("WWW_ROOT", dirname(__FILE__) . DS);}
//define("CAKE_CORE_INCLUDE_PATH", "/usr/lib");
define("CAKE_CORE_INCLUDE_PATH", "/var/www/librerias/$tipo");
if (!defined("CAKE_CORE_INCLUDE_PATH")) {
if (function_exists("ini_set")) { ini_set("include_path", ROOT . DS . "lib" . PATH_SEPARATOR . ini_get("include_path"));}
if (!include ("Cake" . DS . "bootstrap.php")) {$failed = true;}
} else {
if (!include (CAKE_CORE_INCLUDE_PATH . DS . "Cake" . DS . "bootstrap.php")) {$failed = true;}}
if (!empty($failed)) {trigger_error("ERROR GRAVE DE CONFIGURACION" . DS . " DIRECTORIO " . DS . " VENDOR.", E_USER_ERROR);}
App::uses("Dispatcher", "Routing");
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array("charset" => Configure::read("App.encoding"))));